<?php
$Logo 				= 'public/images/img/logo.png';
$Banner				= '';
$Information_footer	= '';
$About_me			= '';
$RowInterfaces		= $interfaces_class->GetByAll();
if(is_array($RowInterfaces)){
	for($sup=0;$sup<count($RowInterfaces);$sup++){
		if(trim($RowInterfaces[$sup]['name'])=='logo'){
			$Logo = $RowInterfaces[$sup]['content'];	
		}
		if(trim($RowInterfaces[$sup]['name'])=='banner'){
			$Banner = $RowInterfaces[$sup]['content'];	
		}
		if($WEB_LANGUAGE==1){
			if(trim($RowInterfaces[$sup]['name'])=='information_vn'){
				$Information_footer = $RowInterfaces[$sup]['content'];	
			}
			if(trim($RowInterfaces[$sup]['name'])=='about_me_vn'){
				$About_me = $RowInterfaces[$sup]['content'];	
			}
		}else{
			if(trim($RowInterfaces[$sup]['name'])=='information_en'){
				$Information_footer = $RowInterfaces[$sup]['content'];	
			}
			if(trim($RowInterfaces[$sup]['name'])=='about_me_en'){
				$About_me = $RowInterfaces[$sup]['content'];	
			}
		}
	}
}

$RowSupportAll		= $support_class->GetByAll(1);
$RowSupportYahoo	= array();
$RowSupportSkyer	= array();
$RowSupportPhone	= array();
if(is_array($RowSupportAll)){
	for($sup=0;$sup<count($RowSupportAll);$sup++){
		if($RowSupportAll[$sup]['type']==1)	{
			$RowSupportYahoo[]	= $RowSupportAll[$sup];
		}else if($RowSupportAll[$sup]['type']==2){
			$RowSupportSkyer[]	= $RowSupportAll[$sup];
		}else if($RowSupportAll[$sup]['type']==3){
			$RowSupportPhone[]	= $RowSupportAll[$sup];
		}
	}
}
$RowConnective		= $connective_class->GetByAll(10,0,1);
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>tttravel.com</title>

<link href="public/css/css.css" rel="stylesheet" type="text/css">
<script src="public/js/jquery-1.9.1.js"></script>
<script src="public/js/jquery-ui.js"></script>
<script type="text/javascript">
	$(function(){
	$("#tabs").tabs();
	});
</script>
</head>

<body>

<div class="container dib">
	<div class="box_header f-left"><?php include 'application/view/default/header.php';?></div><!--end box_header-->
    <div class="box_content f-left">
    	<?php 
		switch($WEB_PAGE){		
			case "about-me" :				include('application/view/template/gioi_thieu.php'); break;
			case "tickets" :				include('application/view/template/vemaybay.php'); break;
			case "tour" :					include('application/view/template/tour.php'); break;
			case "tour-cruise" :			include('application/view/template/tour_cruise.php'); break;
			case "hotel" :					include('application/view/template/khach_san.php'); break;			
			case "news" :					include('application/view/template/tin_tuc.php'); break;	
			case "news-detail" :			include('application/view/template/chitiet.php'); break;	
			case "contact" :				include('application/view/template/lien_he.php'); break;			
			default:						include('application/view/template/home.php'); break;	
		}
		?>
    </div><!--end box_content-->
    <div class="box_footer f-left"><?php include 'application/view/default/footer.php';?></div>
</div><!--end container-->

</body>
</html>